<?php

class Orderimport extends Controller {

    function __construct() {
        parent::__construct();
        $this->loadModel('article');
        //echo 'We are inside article controller<br />';
    }

    public function index(){
        if (Session::get('loggedIn')){
            $data = $this->model->getData();
            $this->view->assign('msg', $data['msg']);
            $this->view->assign('list', $data['list']);

            $this->view->render('article/index');

        }else{
            header('Location: ./index.php');
        }

    }




}